package com.hcb.tonguetiphealth.view;

import android.os.Bundle;

import com.hcb.tonguetiphealth.manager.Exit;
import com.hcb.tonguetiphealth.widget.more.ContactsWidget;
import com.hcb.tonguetiphealth.widget.more.MoreWidget;

public class MoreActivity extends AbstractActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    String share = getIntent().getStringExtra("do");
		if(share != null && share.equals("share")) {
			getIntent().putExtra("do", "");
			setContentView(new ContactsWidget(this));
		} else {
			 setContentView(new MoreWidget(this));
		}
	   
	    Exit.add(this);
	}

	@Override
	public void onBackPressed() {
		//super.onBackPressed();
		finish();
	}
}